import request from '@/utils/request'

// 分页查询所有推荐院校及其投放
export function queryRecommendAcademyByPage(params) {
  return request({
    url: '/mgrService/recommendAcademy/queryRecommendAcademyByPage',
    method: 'post',
    data: params
  })
}

// 更改投放状态
export function updateRecommendStatusById(params) {
  return request({
    url: '/mgrService/recommendAcademy/updateRecommendStatusById',
    method: 'post',
    data: params
  })
}

// 创建一个投放（学校/区域）
export function addRecommendAcademy(params) {
  return request({
    url: '/mgrService/recommendAcademy/addRecommendAcademy',
    method: 'post',
    data: params
  })
}

// 编辑更新一个投放（学校/区域）
export function updateRecommendAcademyById(params) {
  return request({
    url: '/mgrService/recommendAcademy/updateRecommendAcademyById',
    method: 'post',
    data: params
  })
}

// 创建一个投放（学校/区域）
export function queryRecommendAcademyInfoById(id) {
  return request({
    url: `/mgrService/recommendAcademy/queryRecommendAcademyInfoById/${id}`,
    method: 'get',
    data: id
  })
}

// 删除一个推荐院校
export function deleteRecommendAcademyById(id) {
  return request({
    url: `/mgrService/recommendAcademy/deleteRecommendAcademyById/${id}`,
    method: 'get',
    data: id
  })
}
